package com.csun.cmny.provider.model.dto;

import com.csun.cmny.base.dto.BaseQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import java.util.Date;

@Data
public class SubscribeQueryDto extends BaseQuery {

    /*名字*/
    private String name;

    /*状态*/
    private Integer state;

    /*楼宇*/
    private String buildingName;

    /*楼层*/

    private Integer floorNo;

    /*房间编号*/

    private String roomNo;


    /*开始时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private String startDate;

    /*结束时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private String endDate;

    /*机构id*/
    private Long groupId;

    /*yo用户id*/
    private Long userId;
}
